<?php
/*
 * Created on 2013-9-17
 *
 * To change the template for this generated file go to
 * Window - Preferences - PHPeclipse - PHP - Code Templates
 */
 
// link to DB and insert a row to DB

	include ("conn.php");

	$sql = "select * from testT";
	$data = $mysql->getData( $sql );

	if( $mysql->errno() != 0 )
	{
   		die( "Error:" . $mysql->errmsg() );
	}
	
	if($data)
		foreach($data as $a)
			echo $a['name']."<br>";
	$mysql->closeDb();
?>
